diff options
| author | Frank <[email protected]> | 2025-11-20 09:54:20 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-11-20 09:54:22 -0500 |
| commit | 3632ba3785f58330b26f38b0281e2f0bd10d52c4 (patch) | |
| tree | 84a0f0487c207ad71681f6ccd6ba7dd3363cd757 /packages/console/app/src/routes/workspace/[id]/usage-section.module.css | |
| parent | b7b3824d769611a658c727651a6132856c3be3be (diff) | |
| download | opencode-3632ba3785f58330b26f38b0281e2f0bd10d52c4.tar.gz opencode-3632ba3785f58330b26f38b0281e2f0bd10d52c4.zip | |
zen: show token breakdown
Diffstat (limited to 'packages/console/app/src/routes/workspace/[id]/usage-section.module.css')
| -rw-r--r-- | packages/console/app/src/routes/workspace/[id]/usage-section.module.css | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/packages/console/app/src/routes/workspace/[id]/usage-section.module.css b/packages/console/app/src/routes/workspace/[id]/usage-section.module.css index f11e00b21..83c783a2f 100644 --- a/packages/console/app/src/routes/workspace/[id]/usage-section.module.css +++ b/packages/console/app/src/routes/workspace/[id]/usage-section.module.css @@ -56,6 +56,53 @@ color: var(--color-text); font-weight: 500; } + + [data-slot="tokens-with-breakdown"] { + position: relative; + display: flex; + align-items: center; + gap: var(--space-2); + } + + [data-slot="breakdown-button"] { + display: inline-flex; + align-items: center; + justify-content: center; + padding: 0; + background: transparent; + border: none; + color: var(--color-text-muted); + cursor: pointer; + transition: color 0.15s ease; + + &:hover { + color: var(--color-text); + } + + svg { + width: 16px; + height: 16px; + } + } + + [data-slot="breakdown-popup"] { + position: absolute; + left: 0; + top: 100%; + margin-top: var(--space-2); + background: var(--color-bg); + border: 1px solid var(--color-border); + border-radius: var(--border-radius-sm); + padding: var(--space-2); + z-index: 10; + min-width: 180px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + font-size: var(--font-size-xs); + + @media (prefers-color-scheme: dark) { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); + } + } } tbody tr:last-child td { @@ -116,4 +163,24 @@ } } } + + /* Breakdown popup content */ + [data-slot="breakdown-row"] { + display: flex; + justify-content: space-between; + align-items: center; + gap: var(--space-4); + padding: var(--space-1) 0; + } + + [data-slot="breakdown-label"] { + color: var(--color-text-muted); + font-size: var(--font-size-xs); + } + + [data-slot="breakdown-value"] { + color: var(--color-text); + font-weight: 500; + font-size: var(--font-size-xs); + } } |
